/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Biz;

import Dao.PathologyDAO;
import Entity.Doctor;
import Entity.Staff;
import Entity.Test;
import java.sql.SQLException;
import java.util.Date;
import java.util.List;

/**
 *
 * @author cgzf
 */
public class StaffBO {

    public List<Staff> getPStaff() throws SQLException {
        return new PathologyDAO().getPartStaff();
    }

    public List<Staff> getStaff() throws SQLException {
        return new PathologyDAO().getAllStaff();
    }
    
    public void UpdateStaffStatus(int ID,boolean status) throws SQLException
{
    new PathologyDAO().UpdateStaffStatus(ID,status);
}

    public void addStaff(String FName, String LName, Date DOJ, String Dept, String Address, int P_No, boolean Gender, Date DOB, String Edu_qual, String Tech_Skills, String Username, String Password, boolean Status) throws SQLException, ClassNotFoundException, Exception {
        new PathologyDAO().AddStaff(FName, LName, DOJ, Dept, Address, P_No, Gender, DOB, Edu_qual, Tech_Skills, Username, Password, Status);
    }
    
     public void editStaff(int StaffID,String FName, String LName, Date DOJ, String Dept, String Address, int P_No, boolean Gender, Date DOB, String Edu_qual, String Tech_Skills, boolean Status) throws SQLException, ClassNotFoundException, Exception {
        new PathologyDAO().EditStaff(StaffID,FName, LName, DOJ, Dept,Address,P_No,Gender,DOB,Edu_qual,Tech_Skills,Status);
    }

    public void deleteTest(int TestID) throws SQLException, ClassNotFoundException {
        new PathologyDAO().DeleteTest(TestID);
    }

   

    public List<Staff> searchById(int StaffID) throws ClassNotFoundException, SQLException {
        return new PathologyDAO().SearchStaff(StaffID);
    }
}
